#FROM openjdk:8-jre
FROM primetoninc/jdk:1.8
MAINTAINER lqm 123@qq.com

#设置时区,让时间同步
RUN echo "Asia/Shanghai" > /etc/timezone

#设置nginx镜像源
#RUN rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
#安装nginx
#RUN yum install -y nginx
#设置开机自启
#RUN systemctl enable nginx
#启动nginx
#RUN nginx


COPY target/oss-server.jar /oss-server.jar
#ENTRYPOINT ["java","-jar -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC","oss-server.jar"]
ENTRYPOINT ["java","-jar","oss-server.jar"]
#java -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -jar /oss.jar


#中文编码暂时没有解决
#ENV LANG en_US.UTF-8
#ENV LANGUAGE C.UTF-8
#ENV LC_ALL C.UTF-8
#ENV LANG C.UTF-8






